home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1995 April / Internet Tools.iso / x25 / nrs.shar.Z / nrs.shar / ryork.SH < prev    next >
Encoding:
Text File  |  1990-04-27  |  1.5 KB  |  71 lines

  1. case $CONFIG in
  2.     '') . config.sh ;;
  3. esac
  4. outputfile=ryork.cf
  5. rm -f $outputfile.$$
  6. echo "Creating $outputfile (with variable substitutions)"
  7. if cat >$outputfile.$$ <<!GROK!THIS!
  8. # RCSid[] = "@(#)$Header: ryork.SH,v 3.1 86/12/24 10:44:01 pb Rel $"
  9. #
  10. ##################################################
  11. ##################################################
  12. ##############
  13. ############## configure for york directory (D2.2)
  14. ##############
  15. ##################################################
  16. ##################################################
  17.  
  18. # the directory to search for files in
  19.  
  20. directory $datadir
  21.  
  22. # enable tracing
  23. verbose 1
  24.  
  25. # output format (overridden)
  26. output forward short york
  27.  
  28. # the comment file to filter
  29. comment hdr.file
  30.  
  31. #        context        subnet
  32. context     FTP        JANET
  33. context     FTP        PSS
  34. context     JTMP        JANET
  35. context     JTMP        PSS
  36. #O context     JTMP-FILES    JANET
  37. #P context     JTMP-FILES    PSS
  38. #O context     JTMP-REG    JANET
  39. #P context     JTMP-REG    PSS
  40. context     Mail        JANET
  41. context     Mail        PSS
  42. #O context     Mail-telex    TELEX
  43. #O context     Mail-x29    JANET
  44. #P context     Mail-x29    PSS
  45. context     Ts29        JANET
  46. context     Ts29        PSS
  47. context     X29        JANET
  48. context     X29        PSS
  49. #O context     YBTS        JANET
  50. #P context     YBTS        PSS
  51. #O context     YBTS-NODE    JANET
  52. #P context     YBTS-NODE    PSS
  53. context     DESC        JANET    
  54. !GROK!THIS!
  55. then
  56.     : OK
  57. else
  58.     echo "    " Failed to create $outputfile.$$
  59.     exit 1
  60. fi
  61. if cmp $outputfile $outputfile.$$ > /dev/null 2>& 1
  62. then
  63.     rm -f $outputfile.$$
  64.     echo "    " $outputfile not affected
  65. elif mv $outputfile.$$ $outputfile
  66. then
  67.     echo "    " $outputfile updated
  68. else
  69.     echo "+++    " $outputfile left in $outputfile.$$
  70. fi
  71.